package simco.framework.gui.swing.types;

public enum InterfaceActionType 
{
	START, PAUSE, STOP, STEP, RESTART, LOAD_SCENARIO, LAYOUT, TRIM, NONE,
	LAYOUT_SETTINGS, VISUAL_SETTINGS, SKIP_ON_EVENT, MINIMAL_MODE, 
	STANDARD_MODE, DETAIL_MODE, SETTING_LOG;
	;
	
	public static InterfaceActionType getActionByCommand(String command)
	{		
		for(InterfaceActionType type : InterfaceActionType.values() )
		{
			if ( type.toString().equals(command) ) return type;
		}
		
		return NONE;
	}

	@Override
	public String toString() 
	{
		return this.name().toLowerCase();
	}
	
	
}



